<?php $view->extend('admin/donation/template', 'content', array('title' => 'Donation')); ?>


<?php echo $donForm;?>

<h2>Donate package info</h2>
<p>
<label>Name</label>
<?php echo $donForm->input('text','name', isset($don) ? $don->getName() : null)?>
</p>

<p>
<label>Package info</label>
<?php echo $donForm->textarea('message',isset($don) ? $don->getMessage() : null, array('cols' => 60, 'rows' => 30))?>
</p>

<p>
<label>Price:</label>
<?php echo $donForm->input('text','price',isset($don) ? $don->getPrice() : null)?>
</p>

<p>
<label>Currency:</label>
<?php echo $donForm->input('text','currency',isset($don) ? $don->getCurrency() : 'USD')?>
</p>




<h2>Goods configuration:</h2>


<p>
<label>In-Game COPPER / MONEY to send on donate success:</label>
<?php echo $donForm->input('text','moneyGive', isset($don) ? $don->getMoney() : 0)?>
</p>






<div class="row">
<div class="col c3">
<p>
<label>Give these items on donate success:</label>
<?php echo $donForm->textarea('itemsGive',isset($don) ? $don->getItems() : null, array('cols' => 30, 'rows' => 30))?>
</p>
</div>
<div class="col c3">
<div class="message info">
<p>Notice, define item ids like so:</p>
<p>
<strong>ITEM_ID : AMOUNT</strong><br />
1992:2<br />
2312<br />
3232:4<br />
21333<br />
23123<br />
</p>
</div>
</div>
</div>





<p>
<?php echo $donForm->input('submit','submit','Save donation')?>
</p>

<?php echo $donForm->close();?>